package org.tailor

class Orders {
    long ordersID
    int unit
    int orderNumber
    Date orderDate
    Date requiredDate
    BigDecimal salesTax
    Date timestamp
    int trasactionStatus
    int fulfilled
    int cancelledOrders
    int paid
    Date paymentDate
    
   
    static hasMany=[shirt:Shirt]
    static belongsTo=[client:Client]
    
    Payment payment
    
    static constraints = {
        ordersID(blank:false, unique:true)
        unit(min:0)
    }
}
